@extends('layouts.admin')
@section('content')

    <div class="panel panel-default  ">
        <div class="panel-heading">
            <h3>
                增加定时候任务
            </h3>
        </div>
        <div class="panel-body">

            <form class="form-horizontal" role="form" method="POST" id="form"
                  action="/cron_do_add_update" enctype="multipart/form-data">
                {{csrf_field()}}
                <div class="form-group{{ $errors->has('word') ? ' has-error' : '' }}">
                    <label for="title" class="col-md-2 control-label right-label">
                        <div>时间规则</div>
                    </label>
                    <div class="col-md-6">
                        <input id="title" type="text" class="form-control" name="time" value="">
                        @if ($errors->has('word'))
                            <span class="help-block">
                      <strong>{{ $errors->first('word') }}</strong>
                 </span>
                        @endif
                    </div>
                </div>

                <div class="form-group{{ $errors->has('img') ? ' has-error' : '' }}">
                    <label for="title" class="col-md-2 control-label right-label">
                        <div>执行脚本命令</div>
                    </label>
                    <div class="col-md-6">
                        <input id="url" type="text" class="form-control" name="shell" value="">
                        @if ($errors->has('img'))
                            <span class="help-block">
                      <strong>{{ $errors->first('img') }}</strong>

                 </span>
                        @endif

                    </div>

                </div>

                <div id="hide" style="display:none;">

                </div>
                <div class="form-group">

                    <div class="col-md-6 col-md-offset-4">
d                        <button type="submit"  class="btn btn-primary"  style="margin-left: 100px">提交
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <script src="/js/function.js?id=1"></script>

    <script>


        function msg(msgInfo) {
            layui.use('layer', function () {
                layer.msg(msgInfo);
            })
        }

        function checkUrl(url) {
            var objExp = new RegExp();
            if (objExp.test(url) != true) {
                return false;
            } else {
                return true;
            }
        }



    </script>

@endsection